CraigA Posted October 8, 2013 Report Share Posted October 8, 2013 Hello all, I just upgraded from 3.0.1 to 3.0.4. I edited the app/controller/client_main.pdt to include custom field data as I have in all previous version, however, the info just isn't showing up anymore in the my info section of the main login for the client. (echoing the variable shows nothing). app/controller/client_main.pdt $myinfo_settings = array( 'invoice' => array( 'enabled' => ("true" == $client->settings['client_set_invoice']), 'description' => Language::_("ClientMain.myinfo.setting_invoices", true, $invoice_method_language) ), 'autodebit' => array( 'enabled' => true, 'description' => $this->getAutodebitDescription() ), 'customfield' => $field_values[0]->value ); app/view/client/default/client_main_myinfo.pdt $customfield = $this->Html->_($myinfo_settings['customfield'], true); echo "Custom field: <b>" . $customfield . "</b><br />"; Any ideas why this isn't working on the new version? Quote Link to comment Share on other sites More sharing options...
Paul Posted October 8, 2013 Report Share Posted October 8, 2013 Do you mean app/controller/client_main.php? Cody or Tyson should be able to help with this. Quote Link to comment Share on other sites More sharing options...
CraigA Posted October 8, 2013 Author Report Share Posted October 8, 2013 Do you mean app/controller/client_main.php? Cody or Tyson should be able to help with this. yes sorry, client_main.php Quote Link to comment Share on other sites More sharing options...
Tyson Posted October 8, 2013 Report Share Posted October 8, 2013 Since client_main.php is apart of the patch, if you did not merge your custom changes with the patched file, then they were overwritten. Based on your code excerpt, $field_values is undefined: 'customfield' => $field_values[0]->value Quote Link to comment Share on other sites More sharing options...
CraigA Posted October 8, 2013 Author Report Share Posted October 8, 2013 Since client_main.php is apart of the patch, if you did not merge your custom changes with the patched file, then they were overwritten. Based on your code excerpt, $field_values is undefined: 'customfield' => $field_values[0]->value Life saver! I forgot to move over the definition. I really love your guys support. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.