[GRASS-dev] [GRASS GIS] #3222: Add layer with table in Attribute table manager fails

#3222: Add layer with table in Attribute table manager fails
-------------------------+-------------------------
Reporter: pvanbosgeo | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone:
Component: Default | Version: svn-trunk
Keywords: | CPU: Unspecified
Platform: Unspecified |
-------------------------+-------------------------
I am trying to add a layer with attribute table to a vector layer using
the Attribute Table Manager, following the steps:

* Go to to the tab 'Manage layers' and then the tab 'add layer'
* Create a table using the 'create table' option.
* add a layer with the 'insert record for each category into table' option
toggled.

This results in an error window "ERROR: Layer index out of range".

Adding a layer and table with v.category and v.add.table works

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3222&gt;
GRASS GIS <https://grass.osgeo.org>

#3222: Add layer with table in Attribute table manager fails
--------------------------+-------------------------
  Reporter: pvanbosgeo | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.6
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: dbmgr
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------
Changes (by martinl):

* keywords: => dbmgr
* component: Default => wxGUI
* milestone: => 7.0.6

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3222#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>

#3222: Add layer with table in Attribute table manager fails
--------------------------+-------------------------
  Reporter: pvanbosgeo | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.6
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: dbmgr
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------

Comment (by hellik):

Replying to [ticket:3222 pvanbosgeo]:
> I am trying to add a layer with attribute table to a vector layer using
the Attribute Table Manager, following the steps:
>
> * Go to to the tab 'Manage layers' and then the tab 'add layer'
> * Create a table using the 'create table' option.
> * add a layer with the 'insert record for each category into table'
option toggled.
>
> This results in an error window "ERROR: Layer index out of range".
>
> Adding a layer and table with v.category and v.add.table works

confirmed on testing at

{{{
System Info
GRASS version: 7.3.svn
GRASS SVN revision: r70070
Build date: 2016-12-13
Build platform: x86_64-w64-mingw32
GDAL: 2.1.2
PROJ.4: 4.9.3
GEOS: 3.5.0
SQLite: 3.14.1
Python: 2.7.5
wxPython: 2.8.12.1
Platform: Windows-8-6.2.9200 (OSGeo4W)
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3222#comment:2&gt;
GRASS GIS <https://grass.osgeo.org>

#3222: Add layer with table in Attribute table manager fails
--------------------------+-------------------------
  Reporter: pvanbosgeo | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.6.2
Component: wxGUI | Version: svn-trunk
Resolution: worksforme | Keywords: dbmgr
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------
Changes (by martinl):

* status: new => closed
* resolution: => worksforme
* milestone: 7.0.7 => 7.6.2

Comment:

Unable to reproduce in GRASS 7.6.0

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3222#comment:4&gt;
GRASS GIS <https://grass.osgeo.org>