We have moved to Github. Please open tickets there.

Ticket #3127: normalizedreturn.patch

File normalizedreturn.patch, 531 bytes (added by invi, 2 years ago)

Normalizes output key value to null.

  • js/lib/ajax.js

    diff --git a/js/lib/ajax.js b/js/lib/ajax.js
    index 6f6ae05..916581e 100644
    a b elgg.action = function(action, options) { 
    193193    //Always display system messages after actions 
    194194    var custom_success = options.success || elgg.nullFunction; 
    195195    options.success = function(json, two, three, four) { 
     196        json.output = json.output || null; 
     197 
    196198        if (json && json.system_messages) { 
    197199            elgg.register_error(json.system_messages.error); 
    198200            elgg.system_message(json.system_messages.success);