# Add new boolean attribute doesn't work on 5.2

**URL:** <https://forum.shopware.com/t/add-new-boolean-attribute-doesnt-work-on-5-2/42565>\
**Category:** Programmierung\
**Created:** [4. Januar 2017 um 18:01 UTC](https://forum.shopware.com/t/add-new-boolean-attribute-doesnt-work-on-5-2/42565 "2017-01-04T18:01:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cboita](https://avatars.discourse-cdn.com/v4/letter/c/eb9ed0/32.png) [@cboita](https://forum.shopware.com/u/cboita)\
**Post date:** [4. Januar 2017 um 18:01 UTC](https://forum.shopware.com/t/add-new-boolean-attribute-doesnt-work-on-5-2/42565/1 "2017-01-04T18:01:02Z")

</div>

Hi guys,

I’m developing a new plugin where I’m trying to add new attributes to s\_articles\_attributes like:&nbsp;

```
 $service->update('s_articles_attributes', 'hide_base_price', 'boolean', [
            'translatable' => false,
            'displayInBackend' => true,
            'position' => 0,
            'custom' => false,
        ]);

```

And the attribute is shown on free text fields area on backend but if I try to save this boolean, it saves always as false. I think this is a bug related to the conversion from boolean to int(1).&nbsp;

I tried to reproduce this on shopware demo and it works, this was fixed recently? I’m using 5.2.10

Thanks.

Best
