kludgy fix: Cannot manageAssets for a Collaboration System with locked Threads
This commit is contained in:
parent
da28e3b30e
commit
eba97cbde6
2 changed files with 4 additions and 1 deletions
|
|
@ -1,6 +1,8 @@
|
||||||
7.3.2
|
7.3.2
|
||||||
- fix: Calendar and Event now have printable templates and URL parameters.
|
- fix: Calendar and Event now have printable templates and URL parameters.
|
||||||
- fix: Miscellaneous Calendar template fixes
|
- fix: Miscellaneous Calendar template fixes
|
||||||
|
- fix: Cannot manageAssets with a locked Thread -- NOTE: Kludgy, but any other
|
||||||
|
way would probably have to break API.
|
||||||
|
|
||||||
7.3.1
|
7.3.1
|
||||||
- Fixed a problem with IE and resizable text areas that caused IE to crash
|
- Fixed a problem with IE and resizable text areas that caused IE to crash
|
||||||
|
|
|
||||||
|
|
@ -1173,7 +1173,8 @@ sub manageAssets {
|
||||||
$title =~ s/\'/\\\'/g;
|
$title =~ s/\'/\\\'/g;
|
||||||
my $locked;
|
my $locked;
|
||||||
my $edit;
|
my $edit;
|
||||||
if ($child->isLocked) {
|
#if ($child->isLocked) {
|
||||||
|
if ($child->lockedBy) { # This is a stopgap to fix a bug when isLocked is overridden but does not function as in the API
|
||||||
my $username_html = WebGUI::HTML::format($child->lockedBy->username, "text");
|
my $username_html = WebGUI::HTML::format($child->lockedBy->username, "text");
|
||||||
$locked = '<img src="'.$self->session->url->extras('assetManager/locked.gif').'" alt="locked by '.$username_html.'" title="locked by '.$username_html.'" style="border: 0px;" />';
|
$locked = '<img src="'.$self->session->url->extras('assetManager/locked.gif').'" alt="locked by '.$username_html.'" title="locked by '.$username_html.'" style="border: 0px;" />';
|
||||||
$edit = "'<a href=\"".$child->getUrl("func=edit;proceed=manageAssets")."\">Edit</a> | '+" if ($child->canEditIfLocked);
|
$edit = "'<a href=\"".$child->getUrl("func=edit;proceed=manageAssets")."\">Edit</a> | '+" if ($child->canEditIfLocked);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue