MMBase

node.getValue("number") gives non-sensical result.

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.8.0
  • Fix Version/s: 1.8.0
  • Component/s: Mmci
  • Description:
    Hide
    original bugid: #6773
    It gives the node itself back, while everybody would expect an object of type Integer there.

    It is probably caused because the number field is defined as 'NODE' in object.xml, which does not make much sense as well.

    Sadly, if you naively change this to 'INTEGER', then you cannot create new nodes with editwizards any more. Beats me why that is.

    Changed so the bridge will invoke getLongValue() for a number field.
    A better solution is to define a seperate 'ID' MMBase type.
    Show
    original bugid: #6773 It gives the node itself back, while everybody would expect an object of type Integer there. It is probably caused because the number field is defined as 'NODE' in object.xml, which does not make much sense as well. Sadly, if you naively change this to 'INTEGER', then you cannot create new nodes with editwizards any more. Beats me why that is. Changed so the bridge will invoke getLongValue() for a number field. A better solution is to define a seperate 'ID' MMBase type.

Issue Links

Activity

Hide
Michiel Meeuwissen added a comment - 2006-01-24 20:39
node.getValue("number") gives non-sensical result.
It gives the node itself back, while everybody would expect an object of type Integer there.

It is probably caused because the number field is defined as 'NODE' in object.xml, which does not make much sense as well.

Sadly, if you naively change this to 'INTEGER', then you cannot create new nodes with editwizards any more. Beats me why that is.

Show
Michiel Meeuwissen added a comment - 2006-01-24 20:39 node.getValue("number") gives non-sensical result. It gives the node itself back, while everybody would expect an object of type Integer there. It is probably caused because the number field is defined as 'NODE' in object.xml, which does not make much sense as well. Sadly, if you naively change this to 'INTEGER', then you cannot create new nodes with editwizards any more. Beats me why that is.

People

Dates

  • Created:
    2006-03-30 16:01
    Updated:
    2008-09-23 06:32
    Resolved:
    2006-11-24 13:57