diff --git a/include/ImagePool.h b/include/ImagePool.h index 1ff9f213e3..37ac49357a 100644 --- a/include/ImagePool.h +++ b/include/ImagePool.h @@ -119,6 +119,7 @@ public: }; /** Modify an image attribute in the template OR the public attribute + * and updates it in the DB (Image MUST be locked) * @param image pointer to Image * @param name of the attribute to be changed * @param new value for the attribute @@ -140,6 +141,8 @@ public: return image->update_template_attribute(db, name, value); } + image->update(db); + return rc; }