To reproduce:
1.
/give @p spawner{BlockEntityTag:{SpawnData:{id:"blaze"}}} 2
2. Place it in Creative mode.
Result: A blaze spawner.
3. Place it in Survival mode.
Result: A pig spawner.
The same also happens when explicitly setting the entity to be summoned:
/give @p spawner{BlockEntityTag:{SpawnData:{id:"blaze"},SpawnPotentials:[{Entity:{id:"blaze"},Weight:1}]}}
Linked issues
Comments 2
Duplicate of MC-105216.
This works as intended, as a security measure.
seems that in survival the game forces every spawn to be a pig spawn no matter the /give command , the workaround that I find while this bug isn't fixed is also /give a egg of the desired mod and right click it on spawn, since this is the way to change the spawner type