Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Peter Norbeck 7 posts 27 karma points
    Feb 24, 2012 @ 21:38
    Peter Norbeck
    0

    Dashes are removed from cells on output

    Hi,

    All dashes that are written in the cells are removed on output. For example if I write -19 in a cell and saves the content the value saves correctly but when i try to output the tabular data with razor the -19 outputs 19. The dash is gone. 

    This is how I output the Tabular Data content with Razor.  I named the field in umbraco to table:

    <umbraco:macro runat="server" language="cshtml">
    <table>
    @* HEADER *@
    @if( @Model.table.BaseElement.Element("Body") != null ){
    foreach(var row in Model.table.Body.Row ){
    <tr>
    @foreach(var cell in row ){
    <td>@cell.InnerText</td>
    }
    </tr>
    }
    }
    </table>
    </umbraco:macro>

     

    Info:
    Umbraco version: 4.7.1
    IIS version: 7.5
    .net version: 4.0.30319.1

     

  • Mike Taylor 155 posts 353 karma points
    Feb 24, 2012 @ 22:23
    Mike Taylor
    0

    Thanks for reporting this - I'll take a look into it.

    Mike

  • Mike Taylor 155 posts 353 karma points
    Mar 03, 2012 @ 01:32
    Mike Taylor
    0

    Looks like this is a known issue - see http://umbraco.codeplex.com/workitem/30680 - will investigate further.

  • Mike Taylor 155 posts 353 karma points
    Mar 03, 2012 @ 13:47
    Mike Taylor
    0

    OK - I can confirm that this is a bug in 4.7.1.1, and I've managed to get it working by grabbing umbraco.MacroEngines.dll from the latest nightly at http://nightly.umbraco.org/umbraco%204.7.1/4.7.1/

    Let me know if that works for you.

    Cheers,

    Mike

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies