[Solved] Unable to change user after upgrade J3.5

  • Baptiste
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
10 years 3 days ago - 9 years 11 months ago #78992 by Baptiste
Hi!
First i'm using Event booking v1.7 (i can't upgrade because files have been modified by Tuan for matching my use, thanks to him!).

After upgrading to Joomla 3.5, when in backend i open a booking, i can't change the user anymore : The list of CB users open in a pop-up, as usual, but selecting one don't do anything. Here is a screenshot :


So i watch in the source and what have change on the link of a user is that with Joomla 3.5 the js script has diseappear.

As i understand, the js function is not there anymore...

How can i use this function anymore (or is there a workaround to affect another user to a booking)?

thanks a lot and have a good day!
Last edit: 9 years 11 months ago by Baptiste. Reason: Solved

Please Log in or Create an account to join the conversation.

  • Baptiste
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
10 years 3 days ago #78993 by Baptiste
Replied by Baptiste on topic Unable to change user after upgrade to J3.5
I wanted to put the code difference here, but your security tools don't let me, even if i use the "insert code" button. So i made a screenshot ( :S ) :

Please Log in or Create an account to join the conversation.

More
10 years 2 days ago #79012 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Unable to change user after upgrade to J3.5
Hi

It causes by some changes in Joomla 3.5.0. We fixed it few days ago, please download latest version of Events Booking, upgrade it to your site and check it again, the error will be gone

Tuan

Please Log in or Create an account to join the conversation.

  • Baptiste
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
10 years 2 days ago #79018 by Baptiste
Replied by Baptiste on topic Unable to change user after upgrade to J3.5
Hi Tuan,

And thank you for your answer.
Unfortunatly, i use the 1.7 version of Event Booking, and can't upgrade because a lot of code changes have been made (by you, for customing the component).

Can you tell me if i can hack a certain part/file, or if there is a workaround? Of course, i can pay a bill if you can make this change for me too.

Thank you for your answer and have a good day!

Please Log in or Create an account to join the conversation.

More
10 years 2 days ago #79019 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Unable to change user after upgrade to J3.5
Hi Baptiste

There are two files need to be changed (I don't remember how it is coded in version 1.7 of EB).

1. Open the file components/com_eventbooking/helper/helper.php, find the function getUserInput and replace it with the current code:
Code:
public static function getUserInput($userId, $fieldName = 'user_id', $registrantId = 0) { JHtml::_('jquery.framework'); $field = JFormHelper::loadFieldType('User'); $element = new SimpleXMLElement('<field />'); $element->addAttribute('name', $fieldName); $element->addAttribute('class', 'readonly'); if (!$registrantId) { $element->addAttribute('onchange', 'populateRegistrantData();'); } $field->setup($element, $userId); return $field->input; }

2. Try to get this file, unzip it, upload the file to administrator/components/com_eventbooking/view/registrant/tmpl folder on your site. If it works, then we are good. If not, I will need to ask you to purchase a new license of Events Booking to receive our support for this issue

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Baptiste
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
10 years 2 days ago #79029 by Baptiste
Replied by Baptiste on topic Unable to change user after upgrade to J3.5
Hi Tuan,

That hack works perfectly, thank you!

Anyway, i bought a new licence (even if i keep my old Event Booking J1.7!), for all the helps you gave me until now! (and i must have paid much more for all that help!).

Have a good day!

Please Log in or Create an account to join the conversation.

More
10 years 16 hours ago #79077 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Unable to change user after upgrade to J3.5
Great. That's very kind of you. Thanks Baptiste

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc