2010-12-01 Sebastian Kurfuerst <sebastian@typo3.org>
- * Updated Extbase and Fluid to 1.3.0beta2. See their ChangeLogs for details.
+ * Updated Extbase to 1.3.0beta2a and Fluid to 1.3.0beta2. See their ChangeLogs for details.
2010-12-01 Stanislas Rolland <typo3@sjbr.ca>
ChangeLog for Extbase
=====================
-Changes for 1.3.0 Beta 2:
+Changes for 1.3.0 Beta 2a:
==========================
included in TYPO3 4.5.0 Beta 2.
* Fixed Tx_Extbase_Domain_Model_FrontendUser (and marked the old API as deprecated)
* Bugfixes related to Lazy Loading
-Full Changes for 1.3.0 Beta 2:
+Full Changes for 1.3.0 Beta 2a:
==============================
+[+BUGFIX] Extbase (Configuration): change the order of methods to determine the current pageId for backend modules, which is used to fetch the TS framework configuration. Fixes #11205
+[+TASK] Extbase (Object): Make sure the class info cache is returning valid objects
[+BUGFIX] Extbase (Persistence): Persistence_Backend::getIdentifierByObject should work with LazyLoadingProxy
getIdentifierByObject should check if object is an instance of Tx_Extbase_Persistence_LazyLoadingProxy and should return the
identifier of the real object.
return $pageId;
}
- // get root template
- $rootTemplates = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('pid', 'sys_template', 'deleted=0 AND hidden=0 AND root=1', '', '', '1');
- if (count($rootTemplates) > 0) {
- return $rootTemplates[0]['pid'];
- }
-
// get current site root
$rootPages = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('uid', 'pages', 'deleted=0 AND hidden=0 AND is_siteroot=1', '', '', '1');
if (count($rootPages) > 0) {
return $rootPages[0]['uid'];
}
+ // get root template
+ $rootTemplates = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('pid', 'sys_template', 'deleted=0 AND hidden=0 AND root=1', '', '', '1');
+ if (count($rootTemplates) > 0) {
+ return $rootTemplates[0]['pid'];
+ }
+
// fallback
return self::DEFAULT_BACKEND_STORAGE_PID;
}
$return = array();
foreach ($nodeArray as $nodeKey => $nodeValue) {
+ if ($nodeKey === $valuePointer) {
+ return $nodeValue;
+ }
+
if (in_array($nodeKey, array('el', '_arrayContainer'))) {
return $this->walkFlexformNode($nodeValue, $valuePointer);
}
* @return Tx_Extbase_Object_Container_ClassInfo
*/
private function getClassInfo($className) {
- if (!$this->cache->has($className)) {
+ // we also need to make sure that the cache is returning a vaild object
+ // in case something went wrong with unserialization etc..
+ if (!$this->cache->has($className) || !is_object($this->cache->get($className))) {
$this->cache->set($className, $this->classInfoFactory->buildClassInfoFromClassName($className));
}
return $this->cache->get($className);
'clearCacheOnLoad' => 1,
'lockType' => '',
'author_company' => '',
- 'version' => '1.3.0beta2',
+ 'version' => '1.3.0beta2a',
'constraints' => array(
'depends' => array(
'php' => '5.2.0-0.0.0',