← Back to team overview

mahara-contributors team mailing list archive

[Bug 1865095] Re: when using mahara.php json_reply() function we are not able to return data on error

 

To test:

1) Edit your 'dashboard' page and add the 'My friends' block
2) Add another block to the page and try and select 'My friends' - you can't and it's not obvious why
3) Try and add a 'My portfolios' block - same problem

The reason is both these block can only be on page once but unless you
are adding your new block to the top of the page you probably not get to
see the error message there.

We need to error message to appear also in the config modal as well

Also the error shows the blocktype name of the block rather than the
display name of the block, eg 'myviews' instead of 'My portfolios' so
that will need fixing also

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1865095

Title:
  when using mahara.php json_reply() function we are not able to return
  data on error

Status in Mahara:
  In Progress

Bug description:
  When using the pieform.php version of json_reply() we can get error
  message in js when returning error - but with mahara.php we just
  return error but can't access the message in js

  We need to adjust this so that we can get the error returned/displayed
  in a js way

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1865095/+subscriptions


References