diff --git a/bt5/erp5_registry_ohada/SkinTemplateItem/portal_skins/erp5_registry_ohada/M0_getFastInputDialogAssignmentList.xml b/bt5/erp5_registry_ohada/SkinTemplateItem/portal_skins/erp5_registry_ohada/M0_getFastInputDialogAssignmentList.xml index a73254d6e239e6b61d601361e7afe4303a25a924..10170a962ae2f43961cbe44104ae5ee681569918 100644 --- a/bt5/erp5_registry_ohada/SkinTemplateItem/portal_skins/erp5_registry_ohada/M0_getFastInputDialogAssignmentList.xml +++ b/bt5/erp5_registry_ohada/SkinTemplateItem/portal_skins/erp5_registry_ohada/M0_getFastInputDialogAssignmentList.xml @@ -80,12 +80,16 @@ listbox = getattr(request, \'listbox\', None) # Retrieve the fast input data if \n \n def addPerson(first_name=None, last_name=None,\n - start_date=None, default_birthplace_address_city=None,\n - default_address_text=None, description=None, \n + start_date=None, default_birthplace_address_city=\'\',\n + default_address_text=\'\', description=None, \n function=None, **kw):\n """\n This creates a single temporary person with all appropriate parameters\n """\n + # don\'t add person if there is no first_name\n + if not first_name:\n + return\n +\n global result_list\n global uid\n if not (first_name or last_name):\n diff --git a/bt5/erp5_registry_ohada/SkinTemplateItem/portal_skins/erp5_registry_ohada/M2_getFastInputDialogAssignmentList.xml b/bt5/erp5_registry_ohada/SkinTemplateItem/portal_skins/erp5_registry_ohada/M2_getFastInputDialogAssignmentList.xml index bb43aa482d690998a1cf491e05150a9651ee5c33..00a7a617a9febdc3a728aa4353d2a9a6035bd956 100644 --- a/bt5/erp5_registry_ohada/SkinTemplateItem/portal_skins/erp5_registry_ohada/M2_getFastInputDialogAssignmentList.xml +++ b/bt5/erp5_registry_ohada/SkinTemplateItem/portal_skins/erp5_registry_ohada/M2_getFastInputDialogAssignmentList.xml @@ -80,12 +80,16 @@ listbox = getattr(request, \'listbox\', None) # Retrieve the fast input data if \n \n def addPerson(first_name=None, last_name=None,\n - start_date=None, default_birthplace_address_city=None,\n + start_date=None, default_birthplace_address_city=\'\',\n description=None, function=None, old_function=None,\n new=None, going=None, maintained=None, modified=None, **kw):\n """\n This creates a single temporary person with all appropriate parameters\n """\n + # don\'t add person if there is no first_name\n + if not first_name:\n + return\n +\n global result_list\n global uid\n if not (first_name or last_name):\n diff --git a/bt5/erp5_registry_ohada/bt/revision b/bt5/erp5_registry_ohada/bt/revision index 6d706ee9468b3e8a460e59b0fe78008ee1d70cb3..9c574c95386ccbd814a27b1a634f4169bad6c734 100644 --- a/bt5/erp5_registry_ohada/bt/revision +++ b/bt5/erp5_registry_ohada/bt/revision @@ -1 +1 @@ -892 \ No newline at end of file +893 \ No newline at end of file