We have moved to Github. Please open tickets there.

Opened 2 years ago

Closed 2 years ago

#3127 closed Enhancement (fixed)

Normalize JS elgg.action() return

Reported by: brettp Owned by:
Priority: low Milestone: Elgg 1.8.0
Component: JavaScript Version: Github Master
Severity: minor Keywords:
Cc: brett@… Difficulty: trivial

Description

There are a few fields that are expected and might be useful to have normalized to null to avoid JS boilerplate code or exceptions:

  • output
  • system_messages
  • json

This could be done on either the PHP or the JS side.

Attachments (1)

normalizedreturn.patch (531 bytes) - added by invi 2 years ago.
Normalizes output key value to null.

Download all attachments as: .zip

Change History (3)

comment:1 Changed 2 years ago by cash

  • Component changed from Core to JavaScript

Changed 2 years ago by invi

Normalizes output key value to null.

comment:2 Changed 2 years ago by brettp

  • Resolution set to fixed
  • Status changed from new to closed

(In [svn:9039]) Fixes #3127. Normalizing the json returned by the ajax action handler. Doing this in PHP.

Note: See TracTickets for help on using tickets.