Moderators: jmacgreg, michael, jheckman, barbarah, btbell, bdgregg, asmecher
$this->setSubject("[Article " . $article->getId() . "]" . $this->getSubject());$this->setSubject("[Article " . $article->getArticleId() . "]" . $this->getSubject());mgscano wrote:to properly get the articleId it needs a small edit, like:
- Code: Select all
$this->setSubject("[Article " . $article->getArticleId() . "]" . $this->getSubject());
it works also in all the editors' correspondence, thanks a lot for the hint.
mgscano wrote:... which is not different from a scientific guy PoV, but it drives designers crazy. And I have to deal with them.
list($newName, $newSubject) = explode("]", $this->getSubject);
$this->setSubject($newName . "] - #" . $article->getArticleId() . $newSubject);
Users browsing this forum: No registered users and 2 guests