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

Default UserPref values in a gadget are not rendered.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1-BETA5
    • Fix Version/s: 2.0.0
    • Component/s: PHP
    • Labels:
      None
    • Environment:
      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-tag-1.0-r942040.patch
          5 kB
          Tim Wintle
        2. shindig-1262-tag-1.0.patch
          5 kB
          Jacky Wang
        3. shindig-1262.patch
          1 kB
          Jacky Wang

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: