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

TOPIC:

integrityRestrict, initialize editLink with null 08 Jul 2018 11:22 #15602

Hi admin,

In the model/item class there is a function integrityRestrict.
This function will give a warning when the $editlink (variable 5) is not initialized.
Possible solutions: init the function parameter with null or use isset() in the function itself.

I was running into this when I was using a table for prices, which were used as FK on two other tables.
In the model, one FK model integrityRestrict was called with an editlink, and one without (I do not know why)
I forked a controller and then called delete on the price model, this caused the warning to be seen.
Maybe not very visible, but I use an ajax call, causing the warning message to disrupt page processing.

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

  • Page:
  • 1
Time to create page: 0.091 seconds

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started