cannot add identification

Bug #867493 reported by Carl Leitner
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Human Resource Information System for Tanzania
Fix Committed
Undecided
Carl Leitner

Bug Description

cannot add a identification for a person. the identification and employment identification forms validation says that the field is already in use.

this happens on a clean install of 4.0.18. it does not happen on an upgrade to 4.0.18

Related branches

Revision history for this message
Carl Leitner (litlfred) wrote :

Reported by Lungo and Mbozi.

Changed in pmoralg:
status: New → Confirmed
assignee: nobody → Carl Leitner (litlfred)
Revision history for this message
Carl Leitner (litlfred) wrote :

In a clean install of 4.0.18 we get this error message:
[Tue Oct 04 09:40:26 2011] [error] [client ::1]
 Refered by : http://localhost/iHRIS/sites/pmoralg/lga/index.php/person_id
 I2CE: I2CE->raiseError (/home/litlfred/rocket_cats/dev/I2CE/modules/Forms/modules/FormStorage/lib/I2CE_FormStorage_DB.php:281)
       I2CE_FormStorage_DB->getRecords (/home/litlfred/rocket_cats/dev/I2CE/modules/Forms/modules/FormStorage/lib/I2CE_FormStorage_Mechanism.php:337)
       I2CE_FormStorage_Mechanism->getFormsById (/home/litlfred/rocket_cats/dev/I2CE/modules/Forms/modules/FormStorage/lib/I2CE_FormStorage_Mechanism.php:612)
       I2CE_FormStorage_Mechanism->search (/home/litlfred/rocket_cats/dev/I2CE/modules/Forms/modules/FormStorage/lib/I2CE_FormStorage_DB.php:456)
       I2CE_FormStorage_DB->search (/home/litlfred/rocket_cats/dev/I2CE/modules/Forms/modules/FormStorage/lib/I2CE_FormStorage.php:922)
       I2CE_FormStorage->search (/home/litlfred/rocket_cats/dev/I2CE/modules/Forms/modules/FormStorage/lib/I2CE_FormStorage.php:304)
       I2CE_FormStorage->validate_formfield (/home/litlfred/rocket_cats/dev/I2CE/lib/I2CE_ModuleFactory.php:743)
       I2CE_ModuleFactory->_callHooks (/home/litlfred/rocket_cats/dev/I2CE/lib/I2CE_ModuleFactory.php:728)
       I2CE_ModuleFactory->callHooks (/home/litlfred/rocket_cats/dev/I2CE/modules/Forms/modules/Fields/lib/I2CE_FieldContainer.php:724)
       I2CE_FieldContainer->validate (/home/litlfred/rocket_cats/dev/I2CE/modules/Forms/lib/I2CE_PageForm.php:313)
       I2CE_PageForm->validate (/home/litlfred/rocket_cats/dev/I2CE/modules/Forms/lib/I2CE_PageForm.php:546)
       I2CE_PageForm->isConfirm (/home/litlfred/rocket_cats/dev/I2CE/modules/Forms/lib/I2CE_PageForm.php:373)
       I2CE_PageForm->action (/home/litlfred/rocket_cats/dev/I2CE/modules/Pages/lib/I2CE_Page.php:464)
       I2CE_Page->display (/home/litlfred/rocket_cats/dev/I2CE/modules/Pages/lib/I2CE_Wrangler.php:89)
       I2CE_Wrangler->wrangle (/home/litlfred/rocket_cats/sites/pmoralg/tzhris/pmoralg/4.0/sites/lga/pages/index.php:60)
 Could not get the required fields query for person_id

This is due to rev 2622 where form ids are not being created automatically:
  http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/revision/2622
The form/field validator needs to handle this better. Presumably this would affect all validations in a similar manner

Revision history for this message
Carl Leitner (litlfred) wrote :

This has been fixed in the 4.0-dev code with revision 2630

Changed in pmoralg:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.