-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added authored date and settings tab #13
Conversation
771706a
to
5aeaeda
Compare
5aeaeda
to
f43f34d
Compare
* | ||
* @return $this | ||
*/ | ||
public function setAuthored($authored) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is not able to be null add the following line to __construct:
$this->authored = new \DateTime();
it would also make sense to add an |
tests worked for me locally so it seems more a travis-ci setup problem. |
5ec642e
to
f4225b4
Compare
@@ -283,6 +288,15 @@ private function persistDocument($data, $document, $locale) | |||
); | |||
} | |||
|
|||
private function getAuthors(array $authors) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
phpdocs missing
f4225b4
to
7df1602
Compare
* | ||
* @var int[] | ||
*/ | ||
protected $authors; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldnt we initiliazed this as array
that it always return an array
?
@wachterjohannes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
7df1602
to
a25a391
Compare
private function getAuthors(array $authors) | ||
{ | ||
if (0 === count($authors)) { | ||
return [$this->getUser()->getContact()->getId()]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would only do this when the document is created not on edit when the author is removed.
missing translations: sulu_article.authored, sulu_article.authors, ... |
event missing when only change authors. I think you need to throw tab dirty on |
a25a391
to
be9cf20
Compare
be9cf20
to
78507bd
Compare
What's in this PR?
This PR adds an authored date to article.
To Do