Plugin-Konfiguration: Datum wird nicht gespeichert

Ein Fehler aus der Kategorie „Gestern gings noch“. Ich habe für eine SW 4.07 ein Plugin umgesetzt bei dem in der Konfiguration zwei Termine gesetzt werden müssen. Erst klappte das noch, jetzt geht es nicht mehr. Eventuell liegts daran, dass ich das Plugin neu installiert habe? Die Textfelder werden brav gespeichert, die beiden Datumsfelder auch übergeben, aber in der Datenbank steht stur „N;“ als Value. Ich habe dann ein Plugin nur mit der Konfiguration erstellt, auch hier werden die Datumsfelder nicht gespeichert. Sieht jemand die Ursache? verhält sich das bei anderen auch so? NACHTRAG: Auch in einer nahezu reinen Demoinstallation klappts nicht. [code]<?php /**

  • Shopware 4.0
  • Copyright © 2012 shopware AG
  • According to our dual licensing model, this program can be used either
  • under the terms of the GNU Affero General Public License, version 3,
  • or under a proprietary license.
  • The texts of the GNU Affero General Public License with an additional
  • permission and of our proprietary license can be found at and
  • in the LICENSE file you have received along with this program.
  • This program is distributed in the hope that it will be useful,
  • but WITHOUT ANY WARRANTY; without even the implied warranty of
  • MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  • GNU Affero General Public License for more details.
  • „Shopware“ is a registered trademark of shopware AG.
  • The licensing of the program under the AGPLv3 does not imply a
  • trademark license. Therefore any rights, title and interest in
  • our trademarks remain entirely with us.
    */

/**

  • Shopware LoemBaehrEntsorgung Plugin - Bootstrap
  • @category Shopware
  • @package Shopware\Plugins\LoemPluginTest
  • @copyright Copyright © 2013, Das Lösungsmittel (http://www.das-loesungsmittel.de)
    */

class Shopware_Plugins_Frontend_LoemPluginTest_Bootstrap extends Shopware_Components_Plugin_Bootstrap
{
/**
* Get (nice) name for plugin manager list
* @return string
*/
public function getLabel()
{
return ‚DateKonfiguration-Testplugin‘;
}

/**
 * Gibt die Version des Plugins als String zurück
 */
public function getVersion()
{
    return "0.9.0";
}

/**
* Gibt die gesammelten Plugin-Informationen zurück
*
*/
public function getInfo() {
    return array(
        // Die Plugin-Version.
        'version' => $this-\>getVersion(), // Copyright-Hinweis 'copyright' =\> 'Copyright (c) 2013, Das Lösungsmittel', 'autor' =\> 'Das Lösungsmittel', // Lesbarer Name des Plugins 'label' =\> $this-\>getLabel(), // Info-Text, der in den Plugin-Details angezeigt wird 'description' =\> 'Testplugin', // Anlaufstelle für den Support 'support' =\> 'support@das-loesungsmittel.de', // Hersteller-Seite 'link' =\> 'http://www.das-loesungsmittel.de', // Änderungen 'changes' =\> array( '0.9.0'=\>array('releasedate'=\>'2013-04-09', 'lines' =\> array( 'Alpha' )), ) ); } /\*\* \* Standard plugin install method to register all required components. \* \* @throws \Exception \* @return bool \*/ public function install() { $this-\>createConfiguration(); return array('success' =\> true, 'invalidateCache' =\> array('backend')); } /\*\* \* @return bool \*/ public function uninstall() { return true; } public function createConfiguration() { $form = $this-\>Form(); $form-\>setElement('text', 'minimumPrice', array( 'label' =\> 'Minimalgebühr', 'value' =\> 20.00, 'description' =\> 'Gebühr, die immer gezahlt werden muss solange der berechnete Wert darunter liegt', 'required' =\> true ) ); $form-\>setElement('text', 'basePrice', array( 'label' =\> 'Grundgebühr', 'value' =\> 35.00, 'description' =\> 'Gebühr, die immer gezahlt werden muss', 'required' =\> true ) ); $form-\>setElement('date', 'changesTillDate', array( 'label' =\> 'Änderungen möglich bis', 'value' =\> NULL, 'required' =\> true ) ); $form-\>setElement('date', 'nextYearOpenFromDate', array( 'label' =\> 'Anmeldung für das Folgejahr ab', 'value' =\> NULL, 'required' =\> true ) ); } } [/code]

Hey, nehm mal das value => NULL aus der Feld-Deklaration raus.

Danke für den Ansatz, Stefan. Leider hatte das keinerlei Effekt. Ich habe die Bootstrap mittlerweile total zusammengestampft, aber es bleibt dabei: Das Feld bleibt leer. Dabei ging es anfangs, jetzt aber nicht mal mehr im Testplugin. Ich werde mir wohl mit dem Datetime-Feld behelfen müssen, das funktioniert. Hier mein Mini-Testplugin, würde mich freuen ob das mal jemand testen könnte ob bei ihm das Datum gespeichert wird: LoemPluginTest [code]<?php class Shopware_Plugins_Frontend_LoemPluginTest_Bootstrap extends Shopware_Components_Plugin_Bootstrap
{

public function getInfo() {
    return array(
        'version' => "0.9.0", 'copyright' =\> 'Copyright (c) 2013, Das Loesungsmittel', 'autor' =\> 'Das Loesungsmittel', 'label' =\> 'DateKonfiguration-Testplugin', 'description' =\> 'Testplugin', 'support' =\> 'support@das-loesungsmittel.de', 'link' =\> 'http://www.das-loesungsmittel.de' ); } public function install() { $form = $this-\>Form(); $form-\>setElement('date', 'DateTest', array( 'label' =\> 'Aenderungen', 'required' =\> true ) ); return array('success' =\> true, 'invalidateCache' =\> array('backend')); } public function uninstall() { return true; } } ?\> [/code]