Jump to content

Upgraded From 3.0.1 To 3.0.4 - Can't Seem To Get Custom Field Data Anymore In Myinfo


CraigA

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...