Error after expiration and re-advertising

Hello! We’ve added a code snippet to moderate an ad after any attempt to edit it.

	function( $form ) {
		$form['fields']['title']['_moderated'] = true;
		$form['fields']['description']['_moderated'] = true;
		$form['fields']['images']['_moderated'] = true;

		return $form;

But after adding this code, if the seller places an ad and the expiration date has come up, then it is hidden. Prior to adding this code, this ad was in the first position when resubmitted. Now, when re-submitted for moderation, it does not move to the first positions, but remains in the same place where it was in the list before hiding. And the dates are not updated. How to fix it?

Please let me know if this issue persists with custom attributes - try disabling this code snippet and mark any listing attribute as Moderated. You can also remove the line related to the Images field only and check again, to detect which field causes this issue.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.