Uploaded image for project: 'Shindig'
  1. Shindig
  2. SHINDIG-1262

Default UserPref values in a gadget are not rendered.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.1-BETA5
    • 2.0.0
    • PHP
    • None
    • RedHat 5.3, Apache 2.2, PHP 5.2

    Description

      Refer to SHINDIG-175.

      The problem is patched in the Java version, but not PHP.

      Sample gadget:

      <?xml version="1.0" encoding="UTF-8"?>
      <Module>
      <ModulePrefs title="Hello" description="An example of a simple gadget" author="JDM" />
      <UserPref name="firstname" display_name="Your name" datatype="string" default_value="stranger" />
      <Content type="html">
      <![CDATA[
      Hello, <span id="placeholder">name goes here</span>!
      <script type="text/javascript">
      var prefs = new gadgets.Prefs();
      var name = prefs.getString("firstname");
      document.getElementById("placeholder").innerHTML = name;
      </script>
      ]]>
      </Content>
      </Module>

      Displays "Hello, Unable to render embedded object: File (" when it should display "Hello, stranger) not found."

      Attachments

        1. shindig-1262.patch
          1 kB
          Jacky Wang
        2. shindig-1262-tag-1.0.patch
          5 kB
          Jacky Wang
        3. shindig-1262-tag-1.0-r942040.patch
          5 kB
          Tim Wintle

        Activity

          People

            Unassigned Unassigned
            jdmcininch James McIninch
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: