Out of Bound index error in Field Limit

Bug #823965 reported by Carl Leitner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
I2CE
Fix Committed
Low
Luke Duncan

Bug Description

Out of Bound index error in Field Limit:
        Undefined offset: 1
        Occured on line 791 of /var/lib/iHRIS/lib/4.0.16/I2CE/modules/Forms/modules/FieldLimits/lib/I2CE_Module_FieldLimits.php
Should be better bounds checking and fall-back behavior

Related branches

Revision history for this message
Luke Duncan (lduncan) wrote :

I added in a check to make sure the selected value matches a mapped value. I wasn't able to duplicate this so please check to make sure it's not happening for you anymore. The line number didn't exactly match, but list() can cause that warning. Fix is in revision 2588.

Changed in i2ce:
importance: Undecided → Low
assignee: nobody → Luke Duncan (lduncan)
status: New → Fix Committed
Revision history for this message
Carl Leitner (litlfred) wrote :

Dear Mathayo,

I think this has been fixed by revision 2590 of I2CE.

Do you have a test server which you can try this out on? If so can you EITHER

1) use the development code and test it out

OR

2) make a backup copy of the file I2CE/modules/CustomReports/lib/I2CE_CustomReport.php that you are using,
    download the following file:
     http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/view/head:/modules/CustomReports/lib/I2CE_CustomReport.php
   to replace I2CE/modules/CustomReports/lib/I2CE_CustomReport.php

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

Oops. Please ignore the last comment. It was supposed to go to another bug.

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.