Changeset 1204

Show
Ignore:
Timestamp:
08/12/08 05:56:00
Author:
piv
Message:

fix bug: error that appear when rename action to already existed is not handled properly

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • qPloneTabs/branches/quintagroup.plonetabs/trunk/quintagroup/plonetabs/browser/plonetabs.py

    r1201 r1204  
    157157         
    158158        # validate posted data 
    159         errors = self.validateActionFields(cat_name, data, allow_dup=True
     159        errors = self.validateActionFields(cat_name, data, allow_dup=(id == data['id'])
    160160         
    161161        if not errors: 
     
    576576         
    577577        # validate posted data 
    578         errors = self.validateActionFields(cat_name, data, allow_dup=True
     578        errors = self.validateActionFields(cat_name, data, allow_dup=(id == data['id'])
    579579         
    580580        html_id = '%s%s%s' % (self.prefix, id, self.sufix)