Verified in 5.4.1.0
Created a Method as per the example in the docs
dialog_field = $evm.object
dialog_field["sort_by"] = "value"
dialog_field["data_type"] = "integer"
dialog_field["values"] = {1 => "one", 2 => "two", 10 => "ten", 50 => "fifty"}
dialog_field["default_value"] = 2
Verified that on loading the page, the script was only executed once.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://rhn.redhat.com/errata/RHBA-2015-1511.html