Skip to content
Snippets Groups Projects
Commit 19e52dc6 authored by catch's avatar catch
Browse files

Issue #2638182 by beejeebus, Mixologic: fix badly named variable in FeedForm

parent 6cbd448f
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -21,9 +21,7 @@ class FeedForm extends ContentEntityForm {
*/
public function save(array $form, FormStateInterface $form_state) {
$feed = $this->entity;
$insert = (bool) $feed->id();
$feed->save();
if ($insert) {
if ($feed->save() == SAVED_UPDATED) {
drupal_set_message($this->t('The feed %feed has been updated.', array('%feed' => $feed->label())));
$form_state->setRedirectUrl($feed->urlInfo('canonical'));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment