[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Split db id's accuratly from dropdown
- Subject: Re: Split db id's accuratly from dropdown
- From: ..hidden..
- Date: Sun, 16 Sep 2012 17:56:17 -0700
> Hi all I am testing a small change.
> If you name a project, group or whatever with a -- in it
> you will get a db error on searches by that group or project.
> Due to splitting the db id at the wrong point.
> I simply replaced every instance of
> split /--/
> split /--([^--]+)$/
> And it seems to be working well.
> Interestingly Ledgersmb actually strips extra ----'s from customers names
> Would not be good if you had to have -- in a name this could probably be
> Cheers &
> Happy September
Here is a picket fence I used to go through bin/*.pl and LedgerSMB/*.pm
sed -i 's|split /--/| split /--\(\[\^--\]\+\)\$/ |g'