muba-posting 8.0.13 → 8.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Posting.js +8 -1
- package/Publish6.js +5 -1
- package/package.json +1 -1
package/Posting.js
CHANGED
|
@@ -450,7 +450,14 @@ export default class Posting extends React.Component {
|
|
|
450
450
|
|
|
451
451
|
async _saveEditAd() {
|
|
452
452
|
this._showLoading();
|
|
453
|
-
|
|
453
|
+
let ad = { ...this.state.postingAd, id: { adId: this.state.postingAd.id } };
|
|
454
|
+
|
|
455
|
+
for (let photo of ad.images) {
|
|
456
|
+
if (photo.id == undefined) {
|
|
457
|
+
ad = { ...ad, newPictures: true };
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
|
|
454
461
|
if (this.state.originView === Views.EDIT_SELECTOR && Views.PUBLISH_4 !== this.state.view) {
|
|
455
462
|
delete ad.images;
|
|
456
463
|
}
|
package/Publish6.js
CHANGED
|
@@ -137,7 +137,11 @@ export default class Publish6 extends React.Component {
|
|
|
137
137
|
|
|
138
138
|
this.setState({ requiredPhoneError: !validate });
|
|
139
139
|
|
|
140
|
-
|
|
140
|
+
if (this.reference) {
|
|
141
|
+
validate = this.reference.onSubmitValidate() && validate;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
return validate;
|
|
141
145
|
}
|
|
142
146
|
|
|
143
147
|
setLanguages() {
|