CFv5 multi element bug

GreyHead 01 Sep, 2016
There is a bug in the CFv5 Multi-element code that shows PHP Notices in the Designer > Events tab.

The fix is to add these lines around line 30 of /ROOT/administrator/components/com_chronoforms5/chronoforms/events/event.php
          }else{
            foreach($field['inputs'] as $in => $input){
              $label = !empty($input['label']['text']) ? $input['label']['text'] : (!empty($input['label']) ? $input['label'] : (isset($input['value']) ? $input['value'] : null));
              if(!empty($input['name'])){
                self::$fields[$k.'-'.$in] = $input['name'];
              }
              if(!empty($label)){
// add the next three lines
                if ( is_array($label) ) {
                  $label = $label['text'];
                }
// up to here
                self::$fields[$k.'-'.$in] .= ' - '.(strlen($label) < 60 ? $label : substr($label, 0, 60).'...');
              }
            }
          }

Bob
Max_admin 10 Nov, 2016
Thanks Bob, updated for the next release!🙂
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.