- api: You may now use a displayOnly attribute in your asset properties list
that will display a field, but is not settable via the update() method. - api: You may now use a customDrawMethod attribute in your asset properties list that will enable you to add custom display options for that fields when the edit form is automatically generated. - Added file attachments to the Wiki. - Added a new attachments form control. - Added a form control skeleton.
This commit is contained in:
parent
591fd954e3
commit
350d7f6e01
14 changed files with 599 additions and 85 deletions
|
|
@ -357,11 +357,31 @@ Sets the versioning lock to "on" so that this piece of content may not be edited
|
|||
|
||||
sub setVersionLock {
|
||||
my $self = shift;
|
||||
$self->session->db->write("update asset set isLockedBy=".$self->session->db->quote($self->session->user->userId)." where assetId=".$self->session->db->quote($self->getId));
|
||||
$self->session->db->write("update asset set isLockedBy=? where assetId=?", [$self->session->user->userId, $self->getId]);
|
||||
$self->updateHistory("locked");
|
||||
$self->purgeCache;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 setVersionTag ( tagId )
|
||||
|
||||
Changes the version tag associated with this revision to something new.
|
||||
|
||||
=head3 tagId
|
||||
|
||||
A new version tag id.
|
||||
|
||||
=cut
|
||||
|
||||
sub setVersionTag {
|
||||
my $self = shift;
|
||||
my $tagId = shift;
|
||||
$self->session->db->write("update assetData set tagId=? where assetId=?", [$tagId, $self->getId]);
|
||||
$self->updateHistory("changed version tag to $tagId");
|
||||
$self->purgeCache;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue