mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Create site:
- Gives a nice error for duplicate shortNames - service returns "error.duplicateShortName" as the message so a proper error message can be displayed to the client. Delete site - Icons for each site (a small typo had gone into the css in the previous commit) - Handles a failed delete better (i.e. because of lacking permissions) Full preview & Preview - Does only display their page navigation controls if more than 1 page exists - Does not display an error message if an invalid page is given (displays the last or first instead) Preview - Displays its controls above the preview instead of below Full Preview - If its an web image (jpeg, png, gif) it displays the actual image instead of a imgpreview Dashlets - All dashlets use Camel Case in their short name - New shortName for Docsummary: Recently Modified Files git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10542 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -12,7 +12,7 @@ function main()
|
||||
var site = siteService.getSite(shortName);
|
||||
if (site != null)
|
||||
{
|
||||
status.setCode(status.STATUS_BAD_REQUEST, "error.shortName");
|
||||
status.setCode(status.STATUS_INTERNAL_SERVER_ERROR, "error.duplicateShortName");
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user