Commit 72e56a8e authored by bojanz's avatar bojanz

Issue #3093969 by bojanz: Don't show the uid field by default on the store form

parent 0c82e3f1
......@@ -64,4 +64,5 @@ content:
region: content
settings: { }
third_party_settings: { }
hidden: { }
hidden:
uid: true
......@@ -22,3 +22,4 @@ hidden:
default_currency: true
mail: true
name: true
uid: true
......@@ -241,10 +241,8 @@ class Store extends ContentEntityBase implements StoreInterface {
->setDescription(t('The store owner.'))
->setDefaultValueCallback('Drupal\commerce_store\Entity\Store::getCurrentUserId')
->setSetting('target_type', 'user')
->setDisplayOptions('form', [
'type' => 'entity_reference_autocomplete',
'weight' => 50,
]);
->setDisplayConfigurable('view', TRUE)
->setDisplayConfigurable('form', TRUE);
$fields['name'] = BaseFieldDefinition::create('string')
->setLabel(t('Name'))
......
......@@ -40,7 +40,6 @@ class StoreTest extends CommerceWebDriverTestBase {
$this->assertSession()->fieldExists('mail[0][value]');
$this->assertSession()->fieldExists('address[0][address][country_code]');
$this->assertSession()->fieldExists('billing_countries[]');
$this->assertSession()->fieldExists('uid[0][target_id]');
$this->assertSession()->fieldExists('default');
$this->getSession()->getPage()->fillField('address[0][address][country_code]', 'US');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment