mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
Fix so namespaces work even without content data
This commit is contained in:
parent
a204c7fb4b
commit
bbfcb19ab8
@ -22,9 +22,9 @@
|
||||
*
|
||||
* @ToDo supported customized templates stored in DB, currently we only support xet files stored in filesystem
|
||||
*/
|
||||
class etemplate extends etemplate_old {};
|
||||
class etemplate_new extends etemplate_widget_template
|
||||
//class etemplate extends etemplate_widget_template
|
||||
//class etemplate extends etemplate_old {};
|
||||
//class etemplate_new extends etemplate_widget_template
|
||||
class etemplate extends etemplate_widget_template
|
||||
{
|
||||
/**
|
||||
* Are we running as sitemgr module or not
|
||||
|
@ -381,7 +381,8 @@ var et2_readonlysArrayMgr = et2_arrayMgr.extend({
|
||||
}
|
||||
|
||||
// Otherwise return the default value
|
||||
return (typeof this.getEntry("__ALL__") != "undefined");
|
||||
entry = this.getEntry("__ALL__");
|
||||
return entry !== null && (typeof entry != "undefined");
|
||||
}
|
||||
|
||||
});
|
||||
|
@ -817,7 +817,7 @@ var et2_widget = Class.extend({
|
||||
|
||||
// Check whether the manager has a namespace for the id of this object
|
||||
var entry = mgr.getEntry(this.id);
|
||||
if (typeof entry === 'object' && entry !== null)
|
||||
if (typeof entry === 'object' && entry !== null||this.id )
|
||||
{
|
||||
// The content manager has an own node for this object, so
|
||||
// create an own perspective.
|
||||
|
@ -55,7 +55,7 @@ var et2_template = et2_DOMWidget.extend({
|
||||
},
|
||||
},
|
||||
|
||||
createNamespace: true,
|
||||
createNamespace: false,
|
||||
|
||||
/**
|
||||
* Initializes this template widget as a simple container.
|
||||
|
Loading…
Reference in New Issue
Block a user