1. Dmitry Markovich
  2. Newbie area
  3. Thursday, 18 December 2014
  4.  Subscribe via email
Mandatory information about my setup:

Have I searched the tickets before posting? yes
Have I searched the forum before posting? yes
Have I read the documentation before posting (which pages?)? yes
Joomla! version: 3.3.6 Stable
PHP version: 5.5.3-1
MySQL version: 5.5.37-0
Hotspots version: Hotspots Professional 4.3.1
Direct link to the page that shows the issue: repaired


Description of my issue:
There is an error in front-end submission (bugfix), if submission do not have any custom fields. This part of the components/com_hotspots/models/hotspot.php prevent form to be submitted (error about unknown variable, or something like this), failed with fatal error.

public function getForm($data = array(), $loadData = true)
{
// Get the form.
$form = $this->loadForm('com_hotspots.marker', 'marker', array('control' => 'jform', 'load_data' => $loadData));

// Make sure that the custom fields are part of the form
/******** ------ THIS IS THE BAD PLACE. I commented to make my own site running, but had to be checked and repaired.

// $customFieldsModel = $this->getInstance('Customfields', 'HotspotsModel');
// $form->load(HotspotsHelperCustomfields::generateFormXML($customFieldsModel->getItems($data['catid'])));
***********/
Responses (1)


There are %s replies to this question. If you want to see them you need a valid subscription.
If you have a valid subscription, please login now.
Visit store now
Powered by EasyDiscuss for Joomla!