Thursday 11th February, 2016

Editor 1.5.5 release notes

The Editor 1.5.5 is a bug fix release and focuses on addressing known issues. A couple of minor new abilities are introduced in the API to improve its usability.

Editor 1.5.5 is a recommended upgrade for all developers using Editor.

Downloads

Downloads of specific versions of Editor are only available to license holders. Please see the download page for information about the current release version.

Release notes

New

  • Javascript
    • New - JS: Add a none option to the form-options's drawType option. This can be used to stop a table redraw after Editor has completed an edit.
    • New - JS: Multiple fields can now be passed into dependent() using an array as the first parameter.
  • PHP
    • New - PHP: Option to specify which table and field should be used to determine if a file is in use (rather than using the automatic detection) when using the Upload->dbClean() method. This can be particularly useful for uploads when used inside an Mjoin.
  • .NET
    • New - .NET: Option to specify which table and field should be used to determine if a file is in use (rather than using the automatic detection) when using the Upload.DbClean() method. This can be particularly useful for uploads when used inside an MJoin.
    • New - .NET: Ability to set the database provider factory when constructing 'Database' with a connection string.
  • Examples
    • New - Example: Showing the use of the formMessage option for custom messages to be shown when deleting rows.

Fixes

  • Javascript
    • Fix - JS: Server-side processing with inline editing when onBlur is set to submit and tabbing between fields could result in some fields not being placed into edit mode if no data was changed.
    • Fix - JS: UTC / Timezone error in datetime as the extemes of a year
    • Fix - JS: "Undo changes" message could be incorrectly shown in the create form if used after a multi-row edit.
    • Fix - JS: Select on update should trigger the change event only once
    • Fix - JS: Bootstrap modal would always close on esc and not be cancellable
    • Fix - JS: Multi-select elements might not submit when values are changed
    • Fix - JS: select with multiple enabled and an array of multiple values being passed in would not correctly select the current values on edit.
    • Fix - JS: If a row's primary key was changed on edit, it would be removed from the DataTable display and not shown again until the data was reloaded
    • Fix - JS: Submit using the return key could conflict with selecting an item in a select list (i.e. both happen when you expect only one). This occurs only in Firefox and IE, but to ensure consistency he return key will now have no effect on form submission when a select element has focus.
    • Fix - JS: If preOpen were used to cancel the display of the Editor form, the dynamic information should be cleared
    • Fix - JS: Inline editing with datetime could close the form prematurely
    • Fix - JS: Timing error when inline editing with server-side processing and onBlur:submit which could result in events being bound out of sequence.
    • Fix - JS: Decode newline entity on edit for .NET XSS protection decoding
    • Fix - JS: Inline editing, with server-side processing in DataTables and onBlur:'submit' would result in a click to edit interface being usable
    • Fix - JS: When uploading large files it was possible for the server to respond with invalid JSON or no upload information. In both cases Editor should show an error.
    • Fix - JS: When a large file is uploaded it can take a noticeable amount of time to read the file. For such cases it is important that the end user knows something is happening so a message is now shown in the upload button: <i>Uploading file</i> by default, although this can be configured using fileReadText
    • Fix - JS: Using ajax as an object with upload could result in a Javascript error when submitting the form after uploading a file
    • Fix - JS: Dates such as 0000-00-00 would render incorrectly as 1899 when using datetime. The fix requires that Moment.JS be used if such dates are to be supported (any dates before the year 100).
    • Fix - JS: IE8 rendered error for datetime select inputs
  • PHP
    • Fix - PHP: If throwing an exception, the Database class could look for a local Exception class rather than using the global PHP method.
    • Fix - PHP: Field->options() will now sort numerically as well as by string
    • Fix - PHP: Generated SQL query when editing joined tables could result in incorrect SQL being corrected (table name included in the update field list).
    • Fix - PHP: When an array was submitted as a field value, an error could occur in the XSS protection.
  • .NET
    • Fix - .NET: Generated SQL query when editing joined tables could result in incorrect SQL being corrected (table name included in the update field list).
    • Fix - .NET: Upload would incorrectly show an error if a path string was given and path information saved to the database
    • Fix - .NET: MJoin insert wouldn't correctly insert into the joined table.
    • Fix - .NET: Cleaning orphaned upload files would attempt to delete from the wrong database table.
  • Examples
    • Fix - Examples: PHP examples should reference Mjoin rather than Join in their use statements.