class RejectedZoneEditPresenter (View source)

Puts a zone-editor submission that was refused as stale back into the freshly read record listing, so the warning does not also cost the operator their edits.

Methods

static array
restore(array $displayRecords, array $rejectedRecords)

Put a rejected submission back into the rendered rows, so warning the operator that their form was stale does not also cost them their edits.

Details

static array restore(array $displayRecords, array $rejectedRecords)

Put a rejected submission back into the rendered rows, so warning the operator that their form was stale does not also cost them their edits.

Parameters

array $displayRecords

rows read back from the zone, edited in place

array $rejectedRecords

the rows as they were posted

Return Value

array

submitted rows the listing no longer holds, which cannot be restored