New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too many custom field options causes errors #345

Closed
tbar0970 opened this Issue Mar 24, 2017 · 2 comments

Comments

Projects
None yet
1 participant
@tbar0970
Owner

tbar0970 commented Mar 24, 2017

A system with many options in a custom field triggers the errors below.
It's because big group_concat of options is getting too long and is being truncated as it comes out of the DB.
Probably need to stop using the group_concat and run a separate query for the options.

Undefined offset: 1 
Line 208 of /home/jethro/code/2.19.2/db_objects/custom_field.class.php

REQUEST: 
Array
(
   [view] => persons__search
   [name] => xyz
)


BACKTRACE:
Array
(
   [0] => Array
       (
           [file] => /home/jethro/code/2.19.2/include/system_controller.class.php
           [line] => 209
           [function] => getInstancesData
           [class] => Custom_Field
           [type] => ->
           [args] => Array
               (
                   [0] => [Object/Array]
                   [1] => OR
                   [2] => rank
               )

       )

   [1] => Array
       (
           [file] => /home/jethro/code/2.19.2/templates/bulk_actions.template.php
           [line] => 85
           [function] => getDBObjectData
           [class] => System_Controller
           [type] => ->
           [args] => Array
               (
                   [0] => custom_field
                   [1] => [Object/Array]
                   [2] => OR
                   [3] => rank
               )

       )

   [2] => Array
       (
           [file] => /home/jethro/code/2.19.2/templates/person_list.template.php
           [line] => 133
           [args] => Array
               (
                   [0] => /home/jethro/code/2.19.2/templates/bulk_actions.template.php
               )

           [function] => include
       )

   [3] => Array
       (
           [file] => /home/jethro/code/2.19.2/views/view_3_persons__2_search.class.php
           [line] => 63
           [args] => Array
               (
                   [0] => /home/jethro/code/2.19.2/templates/person_list.template.php
               )

           [function] => include
       )

   [4] => Array
       (
           [file] => /home/jethro/code/2.19.2/include/system_controller.class.php
           [line] => 181
           [function] => printView
           [class] => View_Persons__Search
           [type] => ->
           [args] => Array
               (
               )

       )

   [5] => Array
       (
           [file] => /home/jethro/code/2.19.2/templates/main.template.php
           [line] => 90
           [function] => printBody
           [class] => System_Controller
           [type] => ->
           [args] => Array
               (
               )

       )

   [6] => Array
       (
           [file] => /home/jethro/code/2.19.2/include/system_controller.class.php
           [line] => 129
           [args] => Array
               (
                   [0] => /home/jethro/code/2.19.2/templates/main.template.php
               )

           [function] => require
       )

   [7] => Array
       (
           [file] => /home/jethro/code/2.19.2/index.php
           [line] => 58
           [function] => run
           [class] => System_Controller
           [type] => ->
           [args] => Array
               (
               )

       )

)
@tbar0970

This comment has been minimized.

Show comment
Hide comment
@tbar0970

tbar0970 Aug 10, 2017

Owner

Recurring.

Owner

tbar0970 commented Aug 10, 2017

Recurring.

@tbar0970 tbar0970 closed this in 422e5ae Dec 6, 2017

@tbar0970

This comment has been minimized.

Show comment
Hide comment
@tbar0970

tbar0970 Dec 6, 2017

Owner

Needs better fix: The change above will always discard the grouped values

Owner

tbar0970 commented Dec 6, 2017

Needs better fix: The change above will always discard the grouped values

tbar0970 pushed a commit that referenced this issue Dec 7, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment