Changeset 2331

Show
Ignore:
Timestamp:
10/27/08 12:14:38 (2 months ago)
Author:
rage
Message:

fix some bugs

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ecs/packages/BackOffice/trunk/GeographicalAreaManager.py

    r2277 r2331  
    7979            page.absolute_url() 
    8080            ) 
    81         action_url = link_url + "&id=%s" % geopraphicalarea_id 
    82         link_url = "%s&id=%s&iddeliver=%s" % ( 
    83             link_url, geopraphicalarea_id, deliver_id 
    84             ) 
     81        if geopraphicalarea_id is not None and geopraphicalarea_id != '': 
     82            action_url = link_url + "&id=%s" % geopraphicalarea_id 
     83        else: 
     84            action_url = link_url 
     85            geopraphicalarea_id = None 
     86#        link_url = "%s&id=%s&iddeliver=%s" % ( 
     87#            link_url, geopraphicalarea_id, deliver_id 
     88#            ) 
    8589 
    8690        table = Table(css_id=u'content', css_class=u'table',