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.047 seconds

Freakin' Awesome!!! J-Cook is simply awesome - whether you're a highly experienced developer or complete novice whether you're building a small inventory component or a complete community solution! The beauty comes from a fast slick and reliable platform that readily provides developers with everything they'll need to build the backbone of a solid and secure component with wizards for authoring access publishing aliasing created/modified by dates... you name it COOK provides it! J-Cook really surpasses all of the 'competition' as far as MVC tools are concerned! Try love it and get cooking!
learnthrusong (JED)
          

Get Started