- fix [ 1292597 ] Trash not emptied
- fix [ 1292209 ] purgeTree called in runHourly.pl (6.7.4) - fix [ 1290600 ] 6.6.5-6.7.0 upgrade script (fix) (Nicklous Roberts) - fix [ 1288786 ] Names of copied style templates doesnt update. - fix [ 1292538 ] Template::getList isn't versioned - fix [ 1241451 ] Images not showing up in TinyMCE - fix [ 1252786 ] rich edit ie image problem - fix [ 1284248 ] runHourly.pl moving assets I don't want in trash to trash
This commit is contained in:
parent
2ca63a85fb
commit
104ee36535
6 changed files with 24 additions and 5 deletions
|
|
@ -400,7 +400,9 @@ sub getRichEditor {
|
|||
mode => "exact",
|
||||
elements => $nameId,
|
||||
theme => "advanced",
|
||||
document_base_url => "/",
|
||||
relative_urls => "false",
|
||||
# remove_script_host => "false",
|
||||
# document_base_url => "/",
|
||||
auto_reset_designmode => "true",
|
||||
cleanup_callback => "tinyMCE_WebGUI_Cleanup",
|
||||
urlconvertor_callback => "tinyMCE_WebGUI_URLConvertor",
|
||||
|
|
|
|||
|
|
@ -199,7 +199,14 @@ Specify the namespace to build the list for.
|
|||
sub getList {
|
||||
my $class = shift;
|
||||
my $namespace = shift;
|
||||
return WebGUI::SQL->buildHashRef("select assetData.assetId,assetData.title from template left join asset on asset.assetId=template.assetId left join assetData on asset.assetId=assetData.assetId where template.namespace=".quote($namespace)." and template.showInForms=1 and asset.state='published' and (assetData.status='approved' or assetData.tagId=".quote($session{scratch}{versionTag}).") group by assetData.assetId order by assetData.title",WebGUI::SQL->getSlave);
|
||||
my $sth = WebGUI::SQL->read("select asset.assetId, max(assetData.revisionDate) from template left join asset on asset.assetId=template.assetId left join assetData on assetData.revisionDate=template.revisionDate and assetData.assetId=template.assetId where template.namespace=".quote($namespace)." and template.showInForms=1 and asset.state='published' and (assetData.status='approved' or assetData.tagId=".quote($session{scratch}{versionTag}).") group by assetData.assetId order by assetData.title",WebGUI::SQL->getSlave);
|
||||
my %templates;
|
||||
tie %templates, 'Tie::IxHash';
|
||||
while (my ($id, $version) = $sth->array) {
|
||||
$templates{$id} = WebGUI::Asset::Template->new($id,undef,$version)->getTitle;
|
||||
}
|
||||
$sth->finish;
|
||||
return \%templates;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue