Ticket #527 (closed defect: fixed)

Opened 20 months ago

Last modified 20 months ago

Webservice management

Reported by: anonymous Owned by:
Priority: minor Milestone: MediaMosa X.X
Component: Core Version:
Keywords: Cc:
MoSCoW: none Estimated time after impact analysis:
Related to project: none Tested: no
Accepted: no Estimated Hours:

Description

I'm unable to change the settings in webservice management. No errors are displayed but no changes are saved as well. When trying to edit an entry, nothing is selected, there is the on/off options with both unselected.
Selecting off and saving gives webservice was updated successfully but nothing changed.

This is on 2.3.16(1415) and 2.3.9(1381)

Change History

Changed 20 months ago by forgacs

  • status set to closed
  • resolution set to fixed

It is fixed in MediaMosa 2.3.17 and 3.0.6. The fixed MediaMosa versions will be released soon.
The fix:

diff -r 212eaac84112 sites/all/modules/mediamosa/modules/webservice/mediamosa_webservice.module
--- a/sites/all/modules/mediamosa/modules/webservice/mediamosa_webservice.module	Fri Sep 30 14:53:46 2011 +0200
+++ b/sites/all/modules/mediamosa/modules/webservice/mediamosa_webservice.module	Tue Oct 04 09:37:37 2011 +0200
@@ -104,13 +104,13 @@
   // Get destination.
   $l_options = array('query' => drupal_get_destination());
 
-  $actions = array();
-  if (_mediamosa_user_access(mediamosa_permission::UPDATE_CONFIG_WEBSERVICES)) {
-    $actions[] = l(t('Edit'), 'admin/mediamosa/config/webservice/' . $row->{mediamosa_webservice_db::ID} . '/edit', $l_options);
-  }
-
   $rows = array();
   foreach ($result as $row) {
+    $actions = array();
+    if (_mediamosa_user_access(mediamosa_permission::UPDATE_CONFIG_WEBSERVICES)) {
+      $actions[] = l(t('Edit'), 'admin/mediamosa/config/webservice/' . $row->{mediamosa_webservice_db::ID} . '/edit', $l_options);
+    }
+
     $rows[] = array(
       $row->{mediamosa_webservice_db::ID},
       $row->{mediamosa_webservice_db::HANDLE},
Note: See TracTickets for help on using tickets.