Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

INFO : Enum Changes 22 Nov 2016 14:43 #14716

  • MorganL
  • MorganL's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
For those of you, who like me use EXPLODED forms, you may have noticed that any view forks just exploded with enum helper errors if you built a component using 3.0.8

If you did, just find / replace on your forks with the following
YourComponentHelper::enumList('

is replaced by
YourComponentHelperEnum::_('

and you are good to go after uploading
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla

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

INFO : Enum Changes 22 Nov 2016 14:47 #14718

  • MorganL
  • MorganL's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
Unfortutaly that is only half the job..

You then have to replace all the entries in brackets as well...

i.e
('films', 'mpaa'),

becomes
('films_mpaa'),
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla
The following user(s) said Thank You: admin, vlemos

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

INFO : Enum Changes 23 Nov 2016 15:02 #14731

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
It should still works because of the legacy proxy in helper.
Don't it ?

K++
Coding is now a piece of cake

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

INFO : Enum Changes 23 Nov 2016 15:07 #14732

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Normally, the list is loaded automatically if you use the enum type in XML form.
specify the parameters :
type="enum"
enum="films_mpaa"

Then you can remove the call to the helper because the list is automatically loaded. No need to feed the list in the code everytime.

EDIT : "Condensed" or "Exploded" should not change anything.
Just remove the helper call from your forks otherwise it will override the list.
Coding is now a piece of cake

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

Last edit: by admin.
  • Page:
  • 1
Time to create page: 0.108 seconds
  I still don't believe he can really be human to do all this ! From all of the forums that I've ever participated in this is certainly the one that most encapsulates the feeling of being truly open source where everyone's opinions and contributions can and will shape the development of the service! It's truly awesome! Hope you enjoy cooking and look forward to reading and contributing to any of the editorial work that you proposed too!! Thanks
Gez (audibleid - JED)

Get Started