File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,12 @@ public function delete()
126
126
foreach ($ all_pricedetails as $ pricedetails )
127
127
$ pricedetails ->delete ();
128
128
129
- $ this ->get_part ()->set_attributes (array ()); // save part attributes to update its "last_modified"
129
+ // Check if this Orderdetails is the Part's selected Orderdetails for ordering and delete this reference if neccessary
130
+ $ order_orderdetails = $ this ->get_part ()->get_order_orderdetails ();
131
+ if (is_object ($ order_orderdetails ) && ($ order_orderdetails ->get_id () == $ this ->get_id ()))
132
+ $ this ->get_part ()->set_order_orderdetails_id (NULL );
133
+ else
134
+ $ this ->get_part ()->set_attributes (array ()); // save part attributes to update its "last_modified"
130
135
131
136
// now we can delete this orderdetails
132
137
parent ::delete ();
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ Part-DB 0.3.1
12
12
zu einer leeren oder nicht richtig funktionierenden Seite führen
13
13
- Fehler beim Lesen von Dateirechten haben die Installation auf einigen PHP Installationen
14
14
verunmöglicht
15
+ - Darstellungsfehler im IE behoben
16
+ - Fehler beim Löschen von Einkaufsinformationen oder Bauteilen behoben
15
17
16
18
- Sonstiges:
17
19
- Umstellung von SVN auf Git (RSS-Feed auf Startseite angepasst, diverse Links angepasst)
You can’t perform that action at this time.
0 commit comments