Modify

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#733 closed Bug/Fehler (fixed)

Fehler & Frage bzgl. r9137 (Updatekompatibilität der Module)

Reported by: Torsten Riemer Owned by: Ronald Parcinski
Priority: hoch Milestone: modified-shop-2.0.0.0
Component: Module Version: 2.0.0.0
Keywords: Cc:
Blocked By: Blocking:

Description

Das Changeset r9137 führt dazu, dass bereits beim Aufruf der Seite "Module" -> "Zahlungsoptionen" die MySQL-Inserts durchgeführt werden und diese werden doppelt ausgeführt, siehe Screenshot.

Generell finde ich die Idee aber super, nur sollte um die Abfrage herum noch zusätzlich abgefragt werden, ob das Modul überhaupt installiert ist.
Also am Beispiel von "/includes/modules/payment/cod.php" anstatt:

    //update compatibility
    if (!defined('MODULE_PAYMENT_COD_LIMIT_ALLOWED')) {
      xtc_db_query("insert into ".TABLE_CONFIGURATION." ( configuration_key, configuration_value,  configuration_group_id, sort_order, date_added) values ('MODULE_PAYMENT_COD_LIMIT_ALLOWED', '600', '6', '3', now())");
    }

vielleicht lieber:

    //update compatibility
    if (MODULE_PAYMENT_COD_STATUS == 'True' && !defined('MODULE_PAYMENT_COD_LIMIT_ALLOWED')) {
      xtc_db_query("insert into ".TABLE_CONFIGURATION." ( configuration_key, configuration_value,  configuration_group_id, sort_order, date_added) values ('MODULE_PAYMENT_COD_LIMIT_ALLOWED', '600', '6', '3', now())");
    }

Zusätzlich würde ich dann noch die folgenden Module ebenfalls auf diese Art erweitern, damit die Schritte zum deinstallieren und neu installieren der Module aus der Updateanleitung entfallen:

  • "/admin/includes/modules/system/janolaw.php"
  • "/includes/modules/order_total/ot_shipping.php"
  • "/includes/modules/payment/banktransfer.php"
  • "/includes/modules/payment/paypal.php"
  • "/includes/modules/payment/paypalexpress.php"
  • "/includes/modules/payment/moneybookers_*.php"
  • "/includes/modules/payment/pn_sofortueberweisung.php" (müsste in Shopversion 2.00 wieder eingefügt werden, damit die Datenbank-Erweiterungen für das Update von 1.05 SP1d nach 1.06 ausgeführt werden können.)

Attachments (1)

Tabelle configuration.png (237.7 KB ) - added by Torsten Riemer 10 years ago.
Tabelle configuration.png

Download all attachments as: .zip

Change History (5)

by Torsten Riemer, 10 years ago

Attachment: Tabelle configuration.png added

Tabelle configuration.png

comment:1 by Ronald Parcinski, 10 years ago

Owner: set to Ronald Parcinski
Resolution: fixed
Status: newclosed

In 9144:

partly fixed #733

comment:2 by Ronald Parcinski, 10 years ago

Resolution: fixed
Status: closedreopened

comment:3 by Torsten Riemer, 10 years ago

Priority: normalhoch

comment:4 by Gerhard Waldemair, 10 years ago

Resolution: fixed
Status: reopenedclosed

r9137 wurde revoked und dafür ein neues Hinweissystem eingeführt, das fehlende Einträge für Module erkennt.

Version 1, edited 10 years ago by Gerhard Waldemair (previous) (next) (diff)

Modify Ticket

Action
as closed The owner will remain Ronald Parcinski.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.