alphagov/panopticon — pull request #94 by JordanHatch (2013-11-06 13:52:35+00:00)
Title: Link to the correct place for a need based on the artefact's Need ID

This changes the button in the artefact edit form to view the need to link to the correct service - either Need-o-tron or Maslow - based on the Need ID.

A Need ID for Maslow will always be above or equal to 100000. Anything less than that is assumed to be a Need-o-tron need.

This also removes the button in the case where the value of the Need ID field in the artefact is non-numeric, as this will be a reference to a need from a spreadsheet and so it won't exist in any of the two services.