Added "sortOrder" to Folder assets
Added "canAddFile" and "canEdit" to Folder template variables
This commit is contained in:
parent
427993edc5
commit
fc7fbfbd0c
5 changed files with 175 additions and 77 deletions
|
|
@ -52,6 +52,8 @@
|
|||
- fixed: DataForms can now export all non-default fields
|
||||
- rfe: Search results now return with keywords highlighted.
|
||||
- rfe: After committing a version there is now a back to site link
|
||||
- rfe: Added sort order to Folder assets
|
||||
- rfe: Added canEdit and canAddFile template vars to Folder assets
|
||||
|
||||
7.5.22
|
||||
- fixed: Layout template now gets prepared correctly
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ my $session = start(); # this line required
|
|||
addUrlToAssetHistory ( $session ); ##This sub MUST GO FIRST
|
||||
removeDoNothingOnDelete( $session );
|
||||
fixIsPublicOnTemplates ( $session );
|
||||
addSortOrderToFolder( $session );
|
||||
addEMSBadgeTemplate ( $session );
|
||||
|
||||
finish($session); # this line required
|
||||
|
|
@ -58,6 +59,14 @@ sub addUrlToAssetHistory {
|
|||
print "Done.\n" unless $quiet;
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
sub addSortOrderToFolder {
|
||||
my $session = shift;
|
||||
print "\tAdding Sort Order to Folder... " unless $quiet;
|
||||
$session->db->write( 'alter table Folder add column sortOrder ENUM("ASC","DESC") DEFAULT "ASC"' );
|
||||
print "Done.\n" unless $quiet;
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
sub removeDoNothingOnDelete {
|
||||
my $session = shift;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue