Opened 11 years ago

Last modified 10 years ago

#11227 confirmed Bug

dialog.validate.functions bugs — at Version 2

Reported by: Michael Johnson Owned by:
Priority: Normal Milestone:
Component: UI : Dialogs Version: 4.0
Keywords: HasPatch Cc:

Description (last modified by Jakub Ś)

The definition of the function returned from dialog.validate.functions suffers from two bugs.

  1. When obtaining the "value" from the arguments, the inner function should be referencing its own arguments, not those of the outer function.
  2. When calling functions, it should be using "call" and passing "this" so that other validation functions passed as arguments will have the item as "this" as they expect.

Change History (3)

Changed 11 years ago by Michael Johnson

Attachment: 11227.patch added

Patch to plugins.dialog.plugin.js

comment:1 Changed 11 years ago by Michael Johnson

Component: GeneralUI : Dialogs
Version: 3.6.6 (SVN - trunk)

comment:2 Changed 10 years ago by Jakub Ś

Description: modified (diff)
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy