Commit 19e52dc6 authored by catch's avatar catch

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

parent 6cbd448f
......@@ -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'));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment